//
//  BaseViewController.m
//  EasyBuy
//
//  Created by shen donghao on 12-9-22.
//  Copyright (c) 2012年 shen donghao. All rights reserved.
//

#import "BaseViewController.h"

@implementation BaseViewController

- (void)viewDidLoad{
    [super viewDidLoad];
    UIImage *titleBgImage = [UIImage imageNamed:@"common_title_bg.png"];
    self.view.frame = CGRectMake(0, 0, 320, 460);
    UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, titleBgImage.size.width, titleBgImage.size.height)];
    titleView.backgroundColor = [UIColor colorWithPatternImage:titleBgImage];
    [self.view addSubview:titleView];
    [titleBgImage release];
    [titleView release];
    
}

- (void)viewDidUnload{
    
    [super viewDidUnload];

}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
    
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

@end
